package com.spring.hed.factory.strategy;

/**
 * 变化多了就不能用继承了，不然要重写方法
 */
public class XPYDuck  extends Duck {

    public XPYDuck() {
        this.fb = new BBBFly();
//        this.qb = new AAAQuack();
    }

    @Override
    public void displsy() {
        System.out.println("我是橡皮鸭！");
    }
}
